package com.jiang.gzjp.struts.form;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.upload.FormFile;
import com.jiang.gzjp.struts.vo.Member;

/** 
 * MyEclipse Struts
 * Creation date: 02-28-2019
 * 
 * XDoclet definition:
 * @struts.form name="uploadForm"
 */
public class UploadForm extends ActionForm {

	private static final long serialVersionUID = 8857894466409584799L;
	private Member member = new Member(); //自己写的对象类要实例化
	private FormFile photo = null; // 这里框架的类不用实例化

	/** 
	 * Method validate
	 * @param mapping
	 * @param request
	 * @return ActionErrors
	 */
	public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
		// 此处不用验证, 简单点
		return null;
	}

	/** 
	 * Method reset
	 * @param mapping
	 * @param request
	 */
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		// TODO Auto-generated method stub
	}

	/** 
	 * Returns the member.
	 * @return Member
	 */
	public Member getMember() {
		return member;
	}

	/** 
	 * Set the member.
	 * @param member The member to set
	 */
	public void setMember(Member member) {
		this.member = member;
	}

	public FormFile getPhoto() {
		return photo;
	}

	public void setPhoto(FormFile photo) {
		this.photo = photo;
	}
}